{if $request.isSelectedCity == true}
	{foreach from=$request.CityCd item=CityCd name=loop}
<input type="hidden" name="CityCd[{$smarty.foreach.loop.index}]" value="{$CityCd}" />
	{/foreach}
{/if}

{if $request.isSelectedRail == true}
	{foreach from=$request.RailCd item=RailCd name=loop}
<input type="hidden" name="RailCd[{$smarty.foreach.loop.index}]" value="{$RailCd}" />
	{/foreach}
{/if}

<div class="check_area">
	<h3>北海道エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd01" value="01" {$request.PrefCd01checked} {$checkbox_changed}/>{if $pref_static_url.01!=""}<a href="{$pref_static_url.01}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '01')">{/if}北海道</a></li>
	</ul>

	<h3>東北エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd02" value="02" {$request.PrefCd02checked} {$checkbox_changed}/>{if $pref_static_url.02!=""}<a href="{$pref_static_url.02}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '02')">{/if}青森県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd03" value="03" {$request.PrefCd03checked} {$checkbox_changed}/>{if $pref_static_url.03!=""}<a href="{$pref_static_url.03}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '03')">{/if}岩手県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd04" value="04" {$request.PrefCd04checked} {$checkbox_changed}/>{if $pref_static_url.04!=""}<a href="{$pref_static_url.04}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '04')">{/if}宮城県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd05" value="05" {$request.PrefCd05checked} {$checkbox_changed}/>{if $pref_static_url.05!=""}<a href="{$pref_static_url.05}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '05')">{/if}秋田県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd06" value="06" {$request.PrefCd06checked} {$checkbox_changed}/>{if $pref_static_url.06!=""}<a href="{$pref_static_url.06}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '06')">{/if}山形県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd07" value="07" {$request.PrefCd07checked} {$checkbox_changed}/>{if $pref_static_url.07!=""}<a href="{$pref_static_url.07}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '07')">{/if}福島県</a></li>
	</ul>

	<h3>関東・信越エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd13" value="13" {$request.PrefCd13checked} {$checkbox_changed}/>{if $pref_static_url.13!=""}<a href="{$pref_static_url.13}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '13')">{/if}東京都</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd14" value="14" {$request.PrefCd14checked} {$checkbox_changed}/>{if $pref_static_url.14!=""}<a href="{$pref_static_url.14}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '14')">{/if}神奈川県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd11" value="11" {$request.PrefCd11checked} {$checkbox_changed}/>{if $pref_static_url.11!=""}<a href="{$pref_static_url.11}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '11')">{/if}埼玉県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd12" value="12" {$request.PrefCd12checked} {$checkbox_changed}/>{if $pref_static_url.12!=""}<a href="{$pref_static_url.12}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '12')">{/if}千葉県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd08" value="08" {$request.PrefCd08checked} {$checkbox_changed}/>{if $pref_static_url.08!=""}<a href="{$pref_static_url.08}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '08')">{/if}茨城県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd10" value="10" {$request.PrefCd10checked} {$checkbox_changed}/>{if $pref_static_url.10!=""}<a href="{$pref_static_url.10}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '10')">{/if}群馬県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd15" value="15" {$request.PrefCd15checked} {$checkbox_changed}/>{if $pref_static_url.15!=""}<a href="{$pref_static_url.15}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '15')">{/if}新潟県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd09" value="09" {$request.PrefCd09checked} {$checkbox_changed}/>{if $pref_static_url.09!=""}<a href="{$pref_static_url.09}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '09')">{/if}栃木県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd19" value="19" {$request.PrefCd19checked} {$checkbox_changed}/>{if $pref_static_url.19!=""}<a href="{$pref_static_url.19}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '19')">{/if}山梨県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd20" value="20" {$request.PrefCd20checked} {$checkbox_changed}/>{if $pref_static_url.20!=""}<a href="{$pref_static_url.20}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '20')">{/if}長野県</a></li>
	</ul>


	<h3>北陸エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd16" value="16" {$request.PrefCd16checked} {$checkbox_changed}/>{if $pref_static_url.16!=""}<a href="{$pref_static_url.16}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '16')">{/if}富山県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd17" value="17" {$request.PrefCd17checked} {$checkbox_changed}/>{if $pref_static_url.17!=""}<a href="{$pref_static_url.17}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '17')">{/if}石川県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd18" value="18" {$request.PrefCd18checked} {$checkbox_changed}/>{if $pref_static_url.18!=""}<a href="{$pref_static_url.18}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '18')">{/if}福井県</a></li>
	</ul>

	<h3>東海エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd23" value="23" {$request.PrefCd23checked} {$checkbox_changed}/>{if $pref_static_url.23!=""}<a href="{$pref_static_url.23}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '23')">{/if}愛知県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd21" value="21" {$request.PrefCd21checked} {$checkbox_changed}/>{if $pref_static_url.21!=""}<a href="{$pref_static_url.21}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '21')">{/if}岐阜県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd24" value="24" {$request.PrefCd24checked} {$checkbox_changed}/>{if $pref_static_url.24!=""}<a href="{$pref_static_url.24}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '24')">{/if}三重県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd22" value="22" {$request.PrefCd22checked} {$checkbox_changed}/>{if $pref_static_url.22!=""}<a href="{$pref_static_url.22}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '22')">{/if}静岡県</a></li>
	</ul>

	<h3>関西エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd27" value="27" {$request.PrefCd27checked} {$checkbox_changed}/>{if $pref_static_url.27!=""}<a href="{$pref_static_url.27}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '27')">{/if}大阪府</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd26" value="26" {$request.PrefCd26checked} {$checkbox_changed}/>{if $pref_static_url.26!=""}<a href="{$pref_static_url.26}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '26')">{/if}京都府</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd28" value="28" {$request.PrefCd28checked} {$checkbox_changed}/>{if $pref_static_url.28!=""}<a href="{$pref_static_url.28}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '28')">{/if}兵庫県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd25" value="25" {$request.PrefCd25checked} {$checkbox_changed}/>{if $pref_static_url.25!=""}<a href="{$pref_static_url.25}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '25')">{/if}滋賀県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd29" value="29" {$request.PrefCd29checked} {$checkbox_changed}/>{if $pref_static_url.29!=""}<a href="{$pref_static_url.29}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '29')">{/if}奈良県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd30" value="30" {$request.PrefCd30checked} {$checkbox_changed}/>{if $pref_static_url.30!=""}<a href="{$pref_static_url.30}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '30')">{/if}和歌山県</a></li>
	</ul>

	<h3>中国・四国エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd31" value="31" {$request.PrefCd31checked} {$checkbox_changed}/>{if $pref_static_url.31!=""}<a href="{$pref_static_url.31}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '31')">{/if}鳥取県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd32" value="32" {$request.PrefCd32checked} {$checkbox_changed}/>{if $pref_static_url.32!=""}<a href="{$pref_static_url.32}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '32')">{/if}島根県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd33" value="33" {$request.PrefCd33checked} {$checkbox_changed}/>{if $pref_static_url.33!=""}<a href="{$pref_static_url.33}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '33')">{/if}岡山県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd34" value="34" {$request.PrefCd34checked} {$checkbox_changed}/>{if $pref_static_url.34!=""}<a href="{$pref_static_url.34}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '34')">{/if}広島県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd35" value="35" {$request.PrefCd35checked} {$checkbox_changed}/>{if $pref_static_url.35!=""}<a href="{$pref_static_url.35}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '35')">{/if}山口県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd36" value="36" {$request.PrefCd36checked} {$checkbox_changed}/>{if $pref_static_url.36!=""}<a href="{$pref_static_url.36}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '36')">{/if}徳島県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd37" value="37" {$request.PrefCd37checked} {$checkbox_changed}/>{if $pref_static_url.37!=""}<a href="{$pref_static_url.37}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '37')">{/if}香川県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd38" value="38" {$request.PrefCd38checked} {$checkbox_changed}/>{if $pref_static_url.38!=""}<a href="{$pref_static_url.38}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '38')">{/if}愛媛県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd39" value="39" {$request.PrefCd39checked} {$checkbox_changed}/>{if $pref_static_url.39!=""}<a href="{$pref_static_url.39}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '39')">{/if}高知県</a></li>
	</ul>

	<h3>九州・沖縄エリア</h3>
	<ul class="check_area_list">
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd40" value="40" {$request.PrefCd40checked} {$checkbox_changed}/>{if $pref_static_url.40!=""}<a href="{$pref_static_url.40}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '40')">{/if}福岡県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd41" value="41" {$request.PrefCd41checked} {$checkbox_changed}/>{if $pref_static_url.41!=""}<a href="{$pref_static_url.41}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '41')">{/if}佐賀県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd42" value="42" {$request.PrefCd42checked} {$checkbox_changed}/>{if $pref_static_url.42!=""}<a href="{$pref_static_url.42}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '42')">{/if}長崎県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd43" value="43" {$request.PrefCd43checked} {$checkbox_changed}/>{if $pref_static_url.43!=""}<a href="{$pref_static_url.43}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '43')">{/if}熊本県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd44" value="44" {$request.PrefCd44checked} {$checkbox_changed}/>{if $pref_static_url.44!=""}<a href="{$pref_static_url.44}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '44')">{/if}大分県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd45" value="45" {$request.PrefCd45checked} {$checkbox_changed}/>{if $pref_static_url.45!=""}<a href="{$pref_static_url.45}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '45')">{/if}宮崎県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd46" value="46" {$request.PrefCd46checked} {$checkbox_changed}/>{if $pref_static_url.46!=""}<a href="{$pref_static_url.46}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '46')">{/if}鹿児島県</a></li>
		<li><input name="PrefCd[]" type="checkbox" id="PrefCd47" value="47" {$request.PrefCd47checked} {$checkbox_changed}/>{if $pref_static_url.47!=""}<a href="{$pref_static_url.47}">{else}<a href="javascript:clickPref(document.frm_SelPref, '{$request.SrhType}', '47')">{/if}沖縄県</a></li>
	</ul>
</div>

<!-- searchBtnBlock02 -->
<div id="btn_area">
	<div class="btn_area_in">
	<div class="btn01 f_l"><p><a href="javascript:SelTodofuken(document.frm_SelPref, 'city');">市区町村を選択</a></p></div>
	<div class="btn03 f_l"><p><a href="javascript:SelTodofuken(document.frm_SelPref, 'rail');">沿線を選択</a></p></div>
</div>
</div>
<!-- /searchBtnBlock02 -->

{* 最初に選択した都道府県CDを保存 *}
<input type="hidden" name="first_check" id="first_check" value="">
{literal}
<script type="text/javascript">
<!--
$(function(){
	$("div#prefBlock ul.checkBoxList li input").click(function(){
		var checkbox = document.getElementsByName('PrefCd[]');
		var checkCd  = new Array();
		var cnt = 0;
		// チェックしてある都道府県CDを取得
		for (i=0; i<checkbox.length; i++) {
			if (checkbox[i].checked == true) {
				checkCd[cnt] = checkbox[i].value;
				cnt++;
			}
		}
		// チェックしてある都道府県が1件の場合、保存
		if (cnt == 1) {
			document.getElementById('first_check').value = checkCd[0];
		}
	});
});
//-->
</script>
{/literal}
